﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<OptimumInfra.ViewData.ViewDataOrder>" %>

<%@ Import Namespace="OptimumInfra.Models" %>

<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
<div style="float: right; padding-bottom: 10px;">
   <a href="/Account/Orders/">[ Orders ]</a>
    <a href="/Account/ChangePassword/">[ Change Password ]</a>
    <a href="/Account/ChangePassword/">[ Custom IT Management ]</a>
</div>
<div style="padding: 10px; margin: 10px;">
    <h2>Items detail</h2>

          <% List<OrderProduct> orderProduct = Model.OrderProduct;
             if (orderProduct.Count > 0) 
               {                
                %> 
          <table width="700" style="margin-top: 10px;">
          <tr>
            <th>--</th>
             <th>Name</th>
             <th>Quatity</th>
             <th>Price</th>
          </tr>
          <%  foreach (OrderProduct template in orderProduct)
              {   %>
          <tr>
          <td></td>
          <td>          
              <div class="editor-label">
                    <%=template.ProductName %>
               </div>
            </td>
           <td><div class="editor-label">
                    <%=template.Quatity %>
               </div>
            </td>
            <td><div class="editor-label">
                    <%=template.Price %>
               </div>
             </td>  
          </tr>
         <%
              }        
           %>                
            </table>
            <% 
            }
            %>
</div>
</asp:Content>
